package top.hhydra.mimall.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import top.hhydra.mimall.entity.Shipping;
import top.hhydra.mimall.form.ShippingForm;
import top.hhydra.mimall.vo.ResponseVo;

import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author SaiyaEmon
 * @since 2020-02-11
 */
public interface IShippingService extends IService<Shipping> {
    ResponseVo<Map<String, Integer>> add(Integer uid, ShippingForm form);

    ResponseVo delete(Integer uid, Integer shippingId);

    ResponseVo update(Integer uid, Integer shippingId, ShippingForm form);

    ResponseVo<IPage<Shipping>> list(Integer uid, Integer pageNum, Integer pageSize);
}
